#ifndef GFXDAMAGETEXTFX_H
#define GFXDAMAGETEXTFX_H

#include "gfxItem.h"
#include <QRectF>
#include <QPainter>

class GFXDamageTextFX: public GFXItem
{
public:
   explicit GFXDamageTextFX(qint32 amount, ClientEntity *entity=0, QGraphicsItem *parent=0);
   virtual ~GFXDamageTextFX();
   QRectF boundingRect() const;
   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
   virtual void tick();

protected:
   qint32 mAmount;
   QRgb mColor;
   QPointF mStartLoc;
};

#endif
